# 不可变类型: 变量对应的值不能被修改, 如修改则会开辟新的内存空间
# - tuple, str, int, float, bool, None
n = 10
print(f"n's ip is: {id(n)}")  # n's ip is: 4340787792
n = 100
print(f"n's new ip is: {id(n)}")  # n's new ip is: 4340979152

tupA = (1, 2, 3)
print(f"tupA's ip is: {id(tupA)}")  # tupA's ip is: 4340787792

tupB = {"name": "leslie"}
print(f"tupB's ip is: {id(tupB)}")  # tupB's ip is: 4340787792
